package com.sds.smarthome.foundation;


import android.content.Context;
import android.graphics.Bitmap;

import java.io.File;


/**
 * app 缓存读写接口，缓存简单的数据量不大的数据到磁盘
 */
public interface AppCache {

    void initialize(Context context);

    void clearAll();

    void putString(String key, String value);

    String getString(String key);

    void putBoolean(String key, boolean flag);

    Boolean getBoolean(String key);

    void putObject(String key, Object object);

    Object getObject(String key);

    void putImageFile(String fileName, Bitmap bitmap);

    void clearImageFilr(String fileName);

    File getImageFile(String fileName);

}
